import http from '@/common/interface'
//获取心理咨询banner
export function getBannerList(data){
	return http.request({
		url: '/ptBanner/getBannerList',
		method: 'get',
		data
	})
}
//获取心理咨询 咨询师list
export function getZxsList(data){
	return http.request({
		url: '/org/getTeacherList',
		method: 'get',
		data
	})
}
//小程序首页加载机构咨询师
export function getIndexTeaList(){
	return http.request({
		url: '/org/getIndexTeaList',
		method: 'get'
	})
}
//获取擅长领域
export function getFields(data){
	return http.request({
		url: '/lyConfig/getSysLyConfigList',
		method: 'get',
		data
	})
}
//获取擅长人群
export function getPersons(data){
	return http.request({
		url: '/scCrowd/getScCrowdConfigList',
		method: 'get',
		data
	})
}
//获取咨询师详情
export function getZxsInfo(data){
	return http.request({
		url: '/userArch/getZxsIntro',
		method: 'get',
		data
	})
}
//咨询师关注动作
export function addGzZxs(data){
	return http.request({
		url: '/gz/addZxsGz',
		method: 'post',
		data
	})
}
//获取咨询师评价
export function getZxsPjList(data){
	return http.request({
		url: '/zxpj/getZxOrdPjPage',
		method: 'get',
		data
	})
}
//获取咨询师问答
export function getZxsAnsQueList(data){
	return http.request({
		url: '/ask/getZxsAckPage',
		method: 'get',
		data
	})
}
//获取咨询人list
export function getZxUserList(){
	return http.request({
		url: '/order/getZxUserList',
		method: 'get'
	})
}
//增加咨询人信息
export function addZxUser(data){
	return http.request({
		url: '/order/addZxUser',
		method: 'post',
		data
	})
}
//删除已添加咨询人
export function delZxr(data){
	return http.request({
		url: '/order/delZxUser',
		method: 'delete',
		data
	})
}
//获取咨询人信息
export function getZxrInfo(data){
	return http.request({
		url: '/order/getZxUser',
		method: 'get',
		data
	})
}
//获取咨询师预约班次列表
export function getClassTimeList(data){
	return http.request({
		url: '/classTime/getClassTimeList',
		method: 'get',
		data
	})
}
//获取点击某个日期的班次表
export function getSpecClassTimeList(data){
	return http.request({
		url: '/classTime/getSpecClassTimeList',
		method: 'get',
		data
	})
}
//个人咨询优惠金额/积分
export function getZxYhMoney(data){
	return http.request({
		url: '/classTime/getZxYhMoney',
		method: 'get',
		data
	})
}
//添加咨询订单
export function addZxOrder(data){
	return http.request({
		url: '/order/addZxOrder',
		method: 'post',
		data
	})
}
//获取咨询订单list
export function getZxOrderList(data){
	return http.request({
		url: '/order/getZxOrderPage',
		method: 'get',
		data
	})
}
//获取咨询订单详情信息 && 获取咨询套餐订单详情 2024-06-06
export function getZxOrderInfo(data,url){
	return http.request({
		url,
		method: 'get',
		data
	})
}
//订单支付成功后回调获取订单信息
export function getOrderResult(data){
	return http.request({
		url: '/order/getOrderResult',
		method: 'get',
		data
	})
}
//2024/06/06新增咨询套餐支付成功后回调获取订单信息
export function getZxTcOrderResult(data){
	return http.request({
		url: '/tcOrder/getTeaTcOrderResult',
		method: 'get',
		data
	})
}
//增加咨询师评价
export function addZxsOrderPj(data){
	return http.request({
		url: '/zxpj/addOrderPj',
		method: 'post',
		data
	})
}
//取消订单
export function cancelOrder(data){
	return http.request({
		url: '/order/cancelOrder',
		method: 'put',
		data
	})
}
//添加团体订单评价
export function addGroupOrderPj(data){
	return http.request({
		url: '/order/addGroupOrderPj',
		method: 'post',
		data
	})
}
//2024/06/05增加添加咨询套餐订单
export function addTeaZxTcOrder(data){
	return http.request({
		url: '/tcOrder/addTeaTcOrder',
		method: 'post',
		data
	})
}
//获取咨询套餐订单列表
export function getZxTcOrderList(data){
	return http.request({
		url: '/tcOrder/getSliceOrderList',
		method: 'get',
		data
	})
}
//取消咨询套餐订单 2024-06-06
export function cancelZxTcOrder(data){
	return http.request({
		url: '/tcOrder/cancelTeaTcOrder',
		method: 'put',
		data
	})
}